import http from "../../request.js";

//2.根据订单id获取订单明细
function getPreOrderById(orderId) {
	return http({
		url:`/lejuClient/order/getPreOrderById/${orderId}`,
	})
}

// 获取退单公司地址
function getCompanyAddrss() {
	return http({
		url:'/lejuClient/orderReturn/getCompanyAddrss',
	})
}

// 申请退单
function addOrderReturnApply(data) {
	return http({
		url:'/lejuClient/orderReturn/addOrderReturnApply',
		method:'post',
		data
	})
}
// 前面两个为进入页面获取，第三个接口点击提交发送
export { getPreOrderById , getCompanyAddrss , addOrderReturnApply};